home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / dvips / Makefile.orig < prev    next >
Makefile  |  1990-01-27  |  5KB  |  174 lines

  1. #
  2. #   Makefile for dvips
  3. #
  4.  
  5. # for SYSV (and friends which use <string.h> instead of <strings.h>
  6. # define the c-compiler flag
  7. # SYS = -DSYSV
  8.  
  9. # where the installed binary goes
  10. # BINDIR = /usr/bin
  11. BINDIR = /usr/local/bin
  12.  
  13. # where the TFM files go
  14. # TFMDIR = /usr/lib/tex/fonts/tfm
  15. TFMDIR = /home/fonts
  16. # the default path to search for TFM files 
  17. # (this usually is identical to TeX's defaultfontpath, which omits `.')
  18. # (private fonts are given an explicit directory, which overrides the path)
  19. # TFMPATH = /LocalLibrary/Fonts/TeXFonts/tfm:$(TFMDIR)
  20. TFMPATH = $(TFMDIR)
  21.  
  22. # where the PK files go
  23. # PKDIR = /usr/lib/tex/fonts/pk
  24. PKDIR = /home/fonts
  25. # the default path to search for PK files (usually omits `.')
  26. # PKPATH = /LocalLibrary/Fonts/TeXFonts/pk:$(PKDIR)
  27. PKPATH = $(PKDIR)
  28.  
  29. # where the VF files go
  30. # VFDIR = /usr/lib/tex/fonts/vf
  31. VFDIR = /home/fonts/vf
  32. # the default path to search for VF files (usually omits `.')
  33. # VFPATH = /LocalLibrary/Fonts/TeXFonts/vf:$(VFDIR)
  34. VFPATH = $(VFDIR)
  35.  
  36. # where the config files go
  37. # CONFIGDIR = /usr/lib/tex/ps
  38. CONFIGDIR = /home/lib/ps
  39.  
  40. # the default path to search for config files
  41. # CONFIGPATH = .:$(CONFIGDIR)
  42. CONFIGPATH = .:$(CONFIGDIR)
  43.  
  44. # where the header PS files go
  45. # HEADERDIR = /usr/lib/tex/ps
  46. HEADERDIR = /home/lib/ps
  47.  
  48. # the default path to search for header files
  49. # HEADERPATH = .:$(HEADERDIR)
  50. HEADERPATH = .:$(HEADERDIR)
  51.  
  52. # where epsf.tex and rotate.tex go (usually the TeX macros directory)
  53. # TEXMACRODIR = /usr/lib/tex/inputs
  54. TEXMACRODIR = /home/tex/local/lib
  55.  
  56. # the default path to search for epsf and psfiles
  57. # (usually the same as TeX's defaultinputpath)
  58. # FIGPATH = .:..:/usr/lib/tex/inputs
  59. FIGPATH = .:..:/home/tex/local/lib:/home/tex/dist/lib
  60.  
  61. # where the manual page goes
  62. # MANDIR = /usr/local/text/man/man1
  63. MANDIR = /usr/man/man1
  64.  
  65. # add -DDEBUG to turn on debugging capability
  66. # add -DTPIC for tpic support
  67. # if the default resolution is not 300 dpi,
  68. # add -DEFRES=400 or whatever is required
  69. DEFS= -DTPIC -DDEBUG
  70.  
  71. # either use
  72. OPT = -g
  73. # or
  74. #OPT = -s
  75.  
  76. # libraries to include
  77. FLIBS= -lm
  78.  
  79. PATHS = -DTFMPATH=\"$(TFMPATH)\" \
  80.     -DPKPATH=\"$(PKPATH)\" \
  81.     -DVFPATH=\"$(VFPATH)\" \
  82.     -DHEADERPATH=\"$(HEADERPATH)\" \
  83.     -DCONFIGPATH=\"$(CONFIGPATH)\" \
  84.     -DFIGPATH=\"$(FIGPATH)\"
  85.  
  86. CFLAGS = $(DEFS) $(PATHS) $(OPT) $(SYS)
  87.  
  88. SRC = dospecial.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
  89.     download.c prescan.c scanpage.c skippage.c output.c scalewidth.c \
  90.     dosection.c dopage.c resident.c search.c unpack.c drawPS.c \
  91.     header.c makefont.c repack.c virtualfont.c
  92.  
  93. OBJ = dospecial.o dviinput.o fontdef.o loadfont.o dvips.o tfmload.o \
  94.     download.o prescan.o scanpage.o skippage.o output.o scalewidth.o \
  95.     dosection.o dopage.o resident.o search.o unpack.o drawPS.o \
  96.     header.o makefont.o repack.o virtualfont.o
  97.  
  98. # files required to make a distribution
  99. CONFIGFILES = config.ps psfonts.map
  100. HEADERFILES = tex.lpro texc.script texps.lpro special.lpro
  101. FILES = $(CONFIGFILES) $(HEADERFILES) $(SRC) \
  102.     Makefile INSTALLATION README \
  103.     MakeTeXPK ../afm/Makefile epsf.tex rotate.tex dvips.1 \
  104.     paths.h debug.h structures.h squeeze.c afm2tfm.c afm2tfm.1
  105.  
  106. all : afm2tfm dvips tex.pro texps.pro texc.pro
  107.  
  108. dvips : $(OBJ)
  109.     $(CC) $(CFLAGS) $(OBJ) $(LIBS) $(FLIBS) -o dvips
  110.  
  111. afm2tfm: afm2tfm.c
  112.     $(CC) $(CFLAGS) -o afm2tfm afm2tfm.c $(LIBS) $(FLIBS)
  113.  
  114. $(OBJ) : structures.h debug.h Makefile
  115. resident.o dvips.o loadfont.o tfmload.o : paths.h
  116.  
  117. squeeze : squeeze.o
  118.     $(CC) $(CFLAGS) squeeze.o -o squeeze
  119.  
  120. tex.pro : tex.lpro squeeze
  121.     ./squeeze <tex.lpro > tex.pro
  122.  
  123. texc.pro: texc.lpro squeeze
  124.     ./squeeze <texc.lpro >texc.pro
  125.  
  126. texc.lpro: texc.script tex.lpro
  127.     ./texc.script tex.lpro texc.lpro
  128.  
  129. texps.pro : texps.lpro squeeze
  130.     ./squeeze <texps.lpro >texps.pro
  131.  
  132. special.pro : special.lpro squeeze
  133.     ./squeeze <special.lpro >special.pro
  134.  
  135. install : afm2tfm dvips MakeTeXPK \
  136.     tex.pro texc.pro texps.pro special.pro \
  137.     config.ps psfonts.map epsf.tex rotate.tex \
  138.     dvips.1 afm2tfm.1
  139.     - mkdir $(BINDIR)
  140.     - mkdir $(HEADERDIR)
  141.     - mkdir $(CONFIGDIR)
  142.     - mkdir $(MANDIR)
  143.     - mkdir $(TEXMACRODIR)
  144.     install -c -m 755 afm2tfm $(BINDIR)/afm2tfm
  145.     install -c -m 755 dvips $(BINDIR)/dvips
  146.     install -c -m 755 MakeTeXPK $(BINDIR)/MakeTeXPK
  147.     install -c -m 644 tex.pro $(HEADERDIR)
  148.     install -c -m 644 texc.pro $(HEADERDIR)
  149.     install -c -m 644 texps.pro $(HEADERDIR)
  150.     install -c -m 644 special.pro $(HEADERDIR)
  151.     install -c -m 644 config.ps $(CONFIGDIR)
  152.     install -c -m 644 psfonts.map $(CONFIGDIR)
  153.     install -c -m 644 epsf.tex $(TEXMACRODIR)
  154.     install -c -m 644 rotate.tex $(TEXMACRODIR)
  155.     -install -c -m 644 dvips.1 $(MANDIR)
  156.     -install -c -m 644 afm2tfm.1 $(MANDIR)
  157.  
  158. veryclean :
  159.     rm -f *.o dvips squeeze afm2tfm texc.lpro *.pro
  160.  
  161. clean :
  162.     rm -f *.o squeeze afm2tfm
  163.  
  164. lint :
  165.     lint $(DEFS) $(PATHS) $(SRC)
  166.     lint $(DEFS) squeeze.c
  167.     lint $(DEFS) afm2tfm.c
  168.  
  169. shar :
  170.     shar $(FILES) > dvips.shar
  171.  
  172. dist :
  173.     tar cf - $(FILES) | compress > dvips.tar.Z
  174.